package handler

import (
	"github.com/gin-gonic/gin"
	"log"
	"nearby/biz/model"
	"nearby/biz/service"
)

// ViewMomentDetail [Get] /nearby/moment/:moment_id
func ViewMomentDetail(c *gin.Context) {
	req := &model.GetMomentDetailRequest{}
	if err := c.ShouldBindUri(req); err != nil {
		log.Printf("c.ShouldBindUri fail, err: %+v", err)
	}
	var ss service.ViewMomentDetailService
	err := ss.Execute(c, req)
	if err != nil {
		log.Printf("viewMomentDetailService.Execute fail, err: %+v", err)
	}
}
